package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {

    /**
     * @description:  查询当前用户专辑分页列表
     * @author Petrichor
     * @date 2023/12/21 20:30
     * @param albumInfoQuery 待条件查询
     * @return 分页 Page 对象
     **/
    IPage<AlbumListVo> findByPage(Page<AlbumListVo> pageInfo, @Param(value = "vo") AlbumInfoQuery albumInfoQuery);
}
